public class TelaInicial extends Janela{
 
  private float iniT;
  private boolean termina;
  
  TelaInicial(){
    super();
    font = loadFont("fontes//Arial-BoldMT-48.vlw");
    iniT = 0;
  }
  void init(){
    textFont(font, 25);
  }
  void update(){
    background(0);

    fill(255, 255, 255, iniT);
    text("KrakenShell Presents", width/2 - 25*5, height/2);
  
    if (iniT >= 255){
      termina=true;
      delay(1000);
    }

    iniT = termina ? iniT - 1.7 : iniT + 1.7;

    if (iniT <= 0){
      delay(500);
      setActive(principal);
    }
  }
}
